﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="EmployeesList.ascx.cs"
    Inherits="BuXiaChu.OrderDishes.Web.Admin.Modules.Sys.EmployeesList" %>
<%@ Register TagName="Tag" TagPrefix="PageBar" Src="~/Modules/PageBar.ascx" %>
<table>
    <tr>
        <td>
            员工编号
        </td>
        <td>
            姓名
        </td>
        <td>
            性别
        </td>
        <td>
            职称
        </td>
        <td>
            手机
        </td>
        <td>
            所在城市
        </td>
        <td>
            状态
        </td>
        <td>
            操作
        </td>
    </tr>
    <% foreach (var item in PageDataList)
       { %>
    <tr>
        <td>
            <%= item.Id %>
        </td>
        <td>
            <%= HttpUtility.HtmlEncode(item.Name)%>
        </td>
        <td>
            <%=BuXiaChu.OrderDishes.BLL.CodeDictionary.Instance.GetCodeName(item.Gender)%>
        </td>
        <td>
            <%=BuXiaChu.OrderDishes.BLL.CodeDictionary.Instance.GetCodeName(item.JobTitle)%>
        </td>
        <td>
            <%= item.MobileTelephone %>
        </td>
        <td>
            <%=BuXiaChu.OrderDishes.BLL.CodeDictionary.Instance.GetAreaName(item.CityId)%>
        </td>
        <td>
            <%=item.Status!=255?"正常":"已删除" %>
        </td>
        <td>
            <a href="Add.aspx?id=<%=item.Id %>">修改</a><span>|</span>
            <a href="javascript:;" onclick="deleteData(<%= item.Id%>)">删除</a>
        </td>
    </tr>
    <%} %>
</table>
<PageBar:Tag runat="server" ID="PageBarBottom" />
<% 
    PageBarBottom.PbModel.IsForAjax = true;
    PageBarBottom.PbModel.Size = 20;
    PageBarBottom.PbModel.AjaxPageClickCallback = "searchData({index})";
%>
